import http from '../index'

// 登入
export const loginApi = (data) => {
	return http.post('/admin/auth/login', data)
}

// 退出登入
export const outLogin = () => {
	return http.delete('logout')
}

// 获取用户信息
export const getInfo = () => {
	return http.get('/zh/side/user')
}

// 获取验证码
export const codeApi = (data) => http.post('/main/auth/phone', data)

// 验证码登录
export const codeLoginApi = (data) => http.post('/main/auth/login', data)

// 图片上传
export const uploadImg = (data) => http.post('/main/query/upload', data)
